Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Update Docker workflow to build-push-action v2 #1441

Merged
merged 26 commits into from
May 10, 2021

Conversation

matthewfeickert
Copy link
Member

@matthewfeickert matthewfeickert commented May 10, 2021

Description

Update Docker workflow to use docker/login-action@v2 workflow API.

Also update the base image to python:3.8-slim.

This additionally added the GitHub related secrets:

  • DOCKERHUB_USERNAME
  • DOCKERHUB_TOKEN

which means that after this PR is merged the secrets

  • DOCKER_USERNAME
  • DOCKER_PASSWORD

should be removed from the repo.

Checklist Before Requesting Reviewer

  • Tests are passing
  • "WIP" removed from the title of the pull request
  • Selected an Assignee for the PR to be responsible for the log summary

Before Merging

For the PR Assignees:

  • Summarize commit messages into a comprehensive review of the PR
* Update builder base image to python:3.8-slim
* Consolidate Docker testing and publishing workflow
   - Move out of CI workflow
   - Rename .github/workflows/publish-docker.yml -> .github/workflows/docker.yml
* Update Docker workflow to use docker/login-action@v2
   - Use update guide 
   - c.f. https://github.com/docker/build-push-action/blob/17822e4df435afa2aa88ec7d85b56ff55446ca36/UPGRADE.md
* Update Docker tagging system to be context dependent

@matthewfeickert matthewfeickert added the CI CI systems, GitHub Actions label May 10, 2021
@matthewfeickert matthewfeickert self-assigned this May 10, 2021
@codecov
Copy link

codecov bot commented May 10, 2021

Codecov Report

Merging #1441 (c887a71) into master (467e69f) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1441   +/-   ##
=======================================
  Coverage   97.63%   97.63%           
=======================================
  Files          63       63           
  Lines        3967     3967           
  Branches      555      555           
=======================================
  Hits         3873     3873           
  Misses         55       55           
  Partials       39       39           
Flag Coverage Δ
contrib 25.58% <ø> (ø)
unittests 97.40% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 467e69f...c887a71. Read the comment docs.

@matthewfeickert matthewfeickert marked this pull request as ready for review May 10, 2021 07:45
@matthewfeickert matthewfeickert requested a review from kratsg May 10, 2021 07:45
@matthewfeickert
Copy link
Member Author

The update was pretty confusing at first, but the new workflow is actually way nicer IMO, so I think Docker did a good job here. 👍

@matthewfeickert matthewfeickert merged commit 5693d27 into master May 10, 2021
@matthewfeickert matthewfeickert deleted the ci/update-docker-ci branch May 10, 2021 15:37
matthewfeickert added a commit that referenced this pull request May 10, 2021
* Remove load from docker/build-push-action@v2 action publish steps
   - load and push can not be used in the same step
   - load option: Shorthand for --output=type=docker
* Amends PR #1441
@matthewfeickert matthewfeickert added the Docker Involving Docker images or builds label May 10, 2021
@matthewfeickert
Copy link
Member Author

which means that after this PR is merged the secrets

  • DOCKER_USERNAME
  • DOCKER_PASSWORD

should be removed from the repo.

This is done now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI CI systems, GitHub Actions Docker Involving Docker images or builds
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant